package com.etone.smartAudit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.etone.smartAudit.domain.ServerDisk;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: sovy
 * @date: 2020/10/22
 * @description:
 */

@Mapper
public interface ServerDiskMapper extends BaseMapper<ServerDisk> {
    /**
     * 通过服务器id获取磁盘信息
     *
     * @param serverId 服务器id
     * @return
     */
    List<ServerDisk> findByServerId(@Param("serverId") Integer serverId);

    /**
     * 更新磁盘信息
     *
     * @param serverDisk
     * @return
     */
    int updateSpace(ServerDisk serverDisk);
}